// @coding: utf8
// @author: enic

package utils

import (
	"sync"
)

type Singleton struct{}

var instance *Singleton
var once sync.Once

// 获取单例
func GetInstance() *Singleton {
	once.Do(func() {
		instance = &Singleton{}
	})
	return instance
}
